﻿using AChance.Bll.Func;
using AChance.Dal.Func;

namespace AChance.Bll.Trans
{
    public partial class TrnEntity
    {
        /// <summary>
        /// 获取实体
        /// </summary>
        [BllTrans(SqlOperMode = DalConst.SqlOperMode.ReadOnly)]
        public partial class Get
        {
            public class InData
            {
                [BllData(DispName = "主键", Need = true)]
                public string Key { get; set; }
            }
            public class OutData
            {
                [BllData(DispName = "实体")]
                public object Entity { get; set; }
            }
            public static void Exec(InData inData, OutData outData)
            {
                #region 操作执行
                outData.Entity = DalOper.Sql.Select(inData.Key);
                #endregion
            }
        }
    }
}
